package com.seamtop.cuber.web.service.impl;

import com.seamtop.cuber.web.service.ValidateService;
import com.seamtop.cuber.web.service.MenuService;
import com.seamtop.cuber.web.service.SysInitService;
import com.seamtop.cuber.web.service.ViewService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by feng on 2015/10/20.
 */
@Service
public class SysInitServiceImpl implements SysInitService {

    private static final Logger LOG  = LoggerFactory.getLogger(SysInitServiceImpl.class);

    @Autowired
    private MenuService menuService;

    @Autowired
    private ViewService viewService;

    @Autowired
    private ValidateService validateService;

    @Autowired
    public void sysinit() {
        menuService.loadMenuInfo();
        viewService.loadCuberView();
        validateService.loadCuberValidators();
    }
}
